package com.xebest.web.mapper.write;

import com.xebest.web.model.XeVenPurchOrderDetailEntity;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;
@Repository
public interface XeVenPurchOrderDetailWriteMapper {

    /**
     * 批量插入采购单详情
     *
     * @author 李书峰
     */
    int insertPurchProductBatch(List<XeVenPurchOrderDetailEntity> list) throws Exception;

    /**
     * 根据条件插入采购单详情
     *
     * @author 李书峰
     */
    int insertPurchProduct(XeVenPurchOrderDetailEntity record) throws Exception;

    /**
     * 根据条件更新采购单详情
     *
     * @author 李书峰
     */
    int updatePurchProduct(XeVenPurchOrderDetailEntity record) throws Exception;

    /**
     * 查询采购单商品列表
     *
     * @author 李书峰
     */
    List<XeVenPurchOrderDetailEntity> queryPurchProductList(Map<String, Object> map);

    List<XeVenPurchOrderDetailEntity> queryPurchProductListForFin(Map<String, Object> map);

    /**
     * 根据订单号，商品sku，查询采购单商品明细
     *
     * @author 杜春静
     */
    List<XeVenPurchOrderDetailEntity> queryPurchDetailByOrderSku(Map<String, Object> map);

    /**
     * 根据采购单号查询采购单明细
     *
     * @author 杜春静
     */
    List<XeVenPurchOrderDetailEntity> queryPurchDetailByPurch(Map<String, Object> map);

    /**
     * 根据订单号查询采购单的商品明细
     *
     * @author 杜春静
     */
    List<XeVenPurchOrderDetailEntity> queryPurchDetailByOrder(Map<String, Object> map);

}